package com.tanhua.autoconfig.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

/**
 * @author : xyiaao
 * @createDate : 2022/3/18 9:27
 */
@Data
public class BusinessException extends RuntimeException {

    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult) {

        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }

}
